package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class JSONResult {
    private boolean success=true;
    //这是错误的时候返回的数据
    private String msg;
    //但是我们还要用到成功之后的数据
    private Object result;
    public JSONResult mark(String msg){
        success=false;
        this.msg=msg;
        return this;
    }
    public JSONResult setResult(Object result){
        this.result=result;
        return this;
    }
}
